#ifndef MAIN_H
#define MAIN_H
#include <QDir>
#include <QVector>
#include <QMap>
#include <QRegularExpression>
#include <QThread>
#include <QMutex>
#include <QSet>
#include <QTextCodec>
#include "config.h"
#include "mp4.h"

extern Config              config;
extern QVector<Mp4>        liveMp4s;
extern QMutex              liveMp4sMutex;
extern QVector<Mp4>        deadMp4s;
extern QMutex              deadMp4sMutex;
extern QVector<QString>    allMp4Name;
extern QMutex              allMp4NameMutex;
extern QRegularExpression  rMp4;
extern QTextCodec *code;

#define QSTR_TO_STR(qstr) code->fromUnicode(qstr).data()

#endif // MAIN_H
